public class code {
    public static void transform(int [] arr){
        for(int i = 0;i < arr.length;i++){
            arr[i] = arr[i]*2;
        }
    }
    public static void main(String[] args) {
        int[] arr = {1,2,3};
        for(int x : arr){
            System.out.print(x+ " ");
        }
        System.out.println();
        transform (arr);
        for(int x : arr){
            System.out.print(x+ " ");
        }
    }
}
